<?php
namespace app\hongyanche_file\controller;
class Upload{
	private function init(){
    	$demand = request()->action();
    	$res = model('file')->upload($demand);
		return json($res);
	}
	function mall(){
		return $this->init();
	}
	function swiper(){
		return $this->init();
	}
	function unit(){
		return $this->init();
	}
    //证件照
    public function idPhoto()
    {
        return $this->init();
    }
    //行驶证照片
    public function driving_license()
    {
        return $this->init();
    }
}